package com.yanmaohu.nikita.data.function.statement;

import com.yanmaohu.nikita.data.expression.NameExpression;

/**
 * @author Bright Lee
 */
public final class LabelStatement extends Statement {

    private NameExpression label;
    private LoopStatement loopStatement;

    public LabelStatement(NameExpression label, LoopStatement loopStatement) {
        super(label.getBeginIndex(), loopStatement.getEndIndex());
        this.label = label;
        this.loopStatement = loopStatement;
    }

    public NameExpression getLabel() {
        return label;
    }

    public LoopStatement getLoopStatement() {
        return loopStatement;
    }

}
